import React from 'react';
import { connect } from 'dva';
import UserTable from '../components/ComList/UserTable';

class CommonList extends React.Component{
  constructor(props){
    super(props)
  }
  
  render(){
    return (
    	<div>
    		<UserTable/>
    	</div>
    )
  }
  componentDidMount(){
    const breadcrumbData = {
      breadcrumb:[
      	{
      		name:'首页',
      		path:'/'
      	},
        {
          name:'通用列表'
        }
      ]
    };
    this.props.dispatch({
      type:'common/changeBreadcrumb',
      payload:breadcrumbData
    })
  }
}
function mapStateToProps( common ) {
  return { common };
}
export default connect(mapStateToProps)(CommonList);